Skip to main content

Solve django.core.exceptions.ImproperlyConfigured: mysqlclient 1.4.3 or newer is required; you have 1.0.

Recently I encountered such a problem when configuring the environment

1.png

I searched a lot of information on the Internet, such as commenting the code in base.py , or adding the following code :

2.jpg

None of these methods worked for me, and later I found that it could be reduced. Django version. Then I reinstalled the django2 version and got the following error:

TypeError: argument of type PosixPath is not iterable When searching for information online, it was said that the django version was too low and incompatible with python3.

Then I lowered the django version to the django3 version and successfully solved the problem.

Take a note as a reminder~ I hope it will be helpful to friends who are in a similar situation!